#include "Latch.h"
#include <STC15F2K60S2.H>




void Latch(unsigned char Latch_Num)
{
    switch (Latch_Num)
    {
        case 4: P2 = P2 & 0x1f | 0x80;  P2 &= 0x1f;  break;
        case 5: P2 = P2 & 0x1f | 0xa0;  P2 &= 0x1f;  break;
        case 6: P2 = P2 & 0x1f | 0xc0;  P2 &= 0x1f;  break;
        case 7: P2 = P2 & 0x1f | 0xe0;  P2 &= 0x1f;  break;
    }
}












